package lab02.test14;

/**
 * Created by dell on 2017/10/29.
 */
public class Rectangle extends Shape{
    //getArea()方法计算对象的面积

    //属性：长，宽

    double length,width;

    //行为：赋值,面积
    Rectangle(double x,double y){

        length=x;
        width=y;
    }


    @Override
    double getArea() {

        return length*width;
    }
}
